{extend name="public/base" /}
{block name="body"}
<div class="layui-fluid">
    <div class="layui-row">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
			<div class="widget-head">
				<div class="widget-title">公司资料</div>
			</div>
			<form id="my-form" class="layui-form" method="post">
				<div class="widget-body layui-col-lg12">					
					<div class="layui-form-item">
						<label class="layui-form-label form-require">公司名称</label>
						<div class="layui-input-block">
							<input type="text" class="layui-input" name="name" value="{$info.name}" placeholder="请输入公司名称" required>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label form-require">公司编号</label>
						<div class="layui-input-block">
							<input type="text" class="layui-input" name="code" value="{$info.code}" placeholder="请输入公司编号" required>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label form-require">联系电话</label>
						<div class="layui-input-block">
							<input type="text" class="layui-input" name="phone" value="{$info.phone}" placeholder="请输入联系电话" required>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">是否默认</label>
						<div class="layui-input-block">
							<input type="radio" name="is_default" value="1" title="是" {eq name="info['is_default']" value="1"}checked{/eq}>
                    		<input type="radio" name="is_default" value="0" title="否" {eq name="info['is_default']" value="0"}checked{/eq}>
						</div>
					</div>										
					<div class="layui-form-item">
						<label class="layui-form-label">状态</label>
						<div class="layui-input-block">
							<input type="radio" name="status" value="1" title="是" {eq name="info['status']" value="1"}checked{/eq}>
                    		<input type="radio" name="status" value="0" title="否" {eq name="info['status']" value="0"}checked{/eq}>
						</div>
					</div>					
					<div class="layui-form-item">
						<div class="layui-input-block">
							<input type="hidden" name="id" value="{$info.id}">
							<button class="layui-btn" lay-filter="*" lay-submit="">保存</button>
                    		<button class="layui-btn layui-btn-primary" onclick="javascript:history.back(-1);return false;">返回</button>
						</div>						
					</div>
				</div>
			</form>
		</div>
    </div>
</div>
{/block}